package com.t35.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.t35.ssh.dao.UserDao;
import com.t35.ssh.entity.pojo.User;
import com.t35.ssh.service.UserService;
@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {
	private UserDao userDao;
	@Autowired
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	@Override
	public List<User> getAllUserList() {
		// TODO Auto-generated method stub
		
		return this.userDao.findAll();
	}

}
